-- GENERATED SPELL FOR [Dragonmaw Sky Stalker] --


function spell0_23030(pUnit, Event) --@Immolation Arrow,n/a--
pUnit:FullCastSpellOnTarget(40872,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23030', 2000, 1)
end

function spell1_23030(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(40873,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23030', 607, 1)
end

function Sorts_23030(pUnit, Event)
local choix_sorts_23030 = math.random(0, 1)
if choix_sorts_23030 == 0 then
pUnit:RegisterEvent('spell0_23030', 1, 1)
end
if choix_sorts_23030 == 1 then
pUnit:RegisterEvent('spell1_23030', 1, 1)
end
end

function mob23030_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23030', math.random(1500, 3000), 1)
end

function mob23030_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23030_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23030_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23030, 1, 'mob23030_Action')
RegisterUnitEvent(23030, 2, 'mob23030_Leave')
RegisterUnitEvent(23030, 3, 'mob23030_Kill')
RegisterUnitEvent(23030, 4, 'mob23030_Die')
